import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Controls.Styles 1.1

Rectangle {
    height: imageCenterLeft.height
    color: "transparent"
    anchors.right: parent.right
    anchors.rightMargin: 0
    anchors.left: parent.left
    anchors.leftMargin: 0
    anchors.top: parent.top
    anchors.topMargin: 0

    property alias title: titleText.text
    property real proporcao: 0.7

    Image {
        id: imageTopRight
        height: 145*proporcao
        width: 600*proporcao
        anchors.right: parent.right
        anchors.top: parent.top
        source: "qrc:/images/topRight.png"
    }

    Image {
        id: imageCenterLeft
        height: 145*proporcao
        anchors.left: parent.left
        anchors.right: imageTopRight.left
        fillMode: Image.TileHorizontally
        source: "qrc:/images/top.png"
    }

    Image {
        id: logoERP
        height: 166*proporcao
        width: 166*proporcao
        anchors.left: parent.left
        anchors.leftMargin: 30
        source: "qrc:/images/logoERP.png"
    }

    Text {
        id: titleText
        color: "#ffffff"
        text: qsTr("")
        font.bold: true
        anchors.left: logoERP.right
        anchors.leftMargin: parent.width * 0.01
        anchors.verticalCenter: imageCenterLeft.verticalCenter
        font.pixelSize: parent.height * 0.3
    }
}

